package com.fg.pro.model.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerUiConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("API文档")
                        .version("1.0.0")
                        .description("API接口文档")
                        .termsOfService("http://example.com/terms/")
                        .contact(new io.swagger.v3.oas.models.info.Contact()
                                .name("籍祥")
                                .url("http://example.com")
                                .email("dev@example.com")));
    }

}
